<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String realUrl=request.getParameter("realUrl");
	String realAllUrl= path + realUrl;
	pageContext.setAttribute("realUrl", realUrl);
	pageContext.setAttribute("realAllUrl", realAllUrl);
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>新闻中心跳转页面</title>
		<link rel="shortcut icon" type="image/x-icon"	href="<%=path%>/favicon.ico">
		<style type="text/css" >
		body{
			background: #F1ECE6;  
		}
		#gif{
			background: url(adminimg/loading.gif) no-repeat;
			height:100px;
			width:100px;
			border: 0px;
		}
		
		</style>
	</head>
	<body>
		<div id="sending"
			style="filter: alpha(opacity = 80); position: absolute; top: 210px; left: 500px; z-index: 10; ">
			<div id="gif" ></div>
		</div>
		
		<script type="text/javascript">
			function beginData(){
				var realUrl="${realUrl}";
				if(realUrl==null || realUrl==""){
					document.getElementById("sending").innerHTML="";
					document.getElementById("sending").innerHTML="<font color='red'>正在开发中,敬请期待!</font>";
				}else{
					var url = "${realAllUrl}";
					window.location.href=url+ (url.indexOf("?")==-1? "?":"&")+"a="+ Math.floor(Math.random() * 1000);
				}
			}
			
			//延迟100ms加载数据，要不chrome浏览器中看不到旋转的背景图片了 
			setTimeout(beginData, 100);
		</script>
	</body>
</html>
